import request from '@/config/axios'

//创建报表模板
export const reportTempCreate = async (data) => {
  return await request.post({
    url: '/amp/report-temp/create',
    data
  })
}
//删除报表模板
export const reportTempDel = async (id) => {
  return await request.delete({
    url: '/amp/report-temp/delete?id=' + id
  })
}
//获得报表模板
export const reportTempGet = async (params) => {
  return await request.get({
    url: '/amp/report-temp/get',
    params
  })
}
// 获得报表模板分页
export const reportTempPage = async (params) => {
  return await request.getOriginal({
    url: '/amp/report-temp/page',
    params
  })
}
// 更新报表模板
export const reportTempUpdate = async (data) => {
  return await request.put({
    url: '/amp/report-temp/update',
    data
  })
}
